package com.monkeygroup.mygoplus.common.utils;

/**
 *
 * Created by cumt on 2017/6/15.
 */

public class StringUtil {

    public static Boolean isBlank(String s){
        if(s!=null && !"".equals(s) &&!"null".equals(s)){
            return false;
        }

       return true;

    }
    //數組轉換為字符串
    public static String arrayToString(String[] array){
        if(array==null || array.length==0){
            return "";
        }
        StringBuffer img = new StringBuffer("");
        for(int i=0;i<array.length;i++){
            img.append(array[i]);
            if(i!=(array.length-1)){
                img.append(",");
            }
        }
        return img.toString();
    }

}
